package org.gw.building.model;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.gw.building.model.base.Czlx;
import org.gw.building.model.base.Mz;
import org.gw.building.model.base.Rylx;
import org.gw.building.model.base.Rzsjly;
import org.gw.building.model.base.Sjly;
import org.gw.building.model.base.Xb;
import org.gw.building.model.base.Zzmm;
import org.gw.ylc.base.model.Xl;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by qwx89 on 2017/7/24.
 */
@Data
@NoArgsConstructor
@Entity
@Table(name = "T_TQTJ_TYXXRZB")
public class Tyxxrzb {
  @Id
  @GeneratedValue(generator = "uuid")
  @GenericGenerator(name = "uuid", strategy = "uuid")
  private String rzid;

  private String id;

  private String yx;

  @ManyToOne
  @JoinColumn(name = "zbmc")
  private Bm zbmc;

  private String xh;

  private String xm;

  @ManyToOne
  @JoinColumn(name = "xb")
  private Xb xb;

  private Date csrq;

  @ManyToOne
  @JoinColumn(name = "mz")
  private Mz mz;

  @ManyToOne
  @JoinColumn(name = "zzmm")
  private Zzmm zzmm;

  @ManyToOne
  @JoinColumn(name = "whcd")
  private Xl whcd;

  private boolean tgb;

  private boolean zbsj;

  private boolean zbwy;

  private String tnzw;

  private String bz;

  private Date rtrq;

  private Date sqrdrq;

  private Date tntyrq;

  private Date fzwybdyrq;

  private Date zzrq;

  @ManyToOne
  @JoinColumn(name = "lx")
  private Rylx lx;

  private boolean scbz;

  @ManyToOne
  @JoinColumn(name = "sjly")
  private Sjly sjly;

  @ManyToOne
  @JoinColumn(name = "czlx")
  private Czlx czlx;

  private String czr;

  private Date czsj = new Date();

  @ManyToOne
  @JoinColumn(name = "rzsjly")
  private Rzsjly rzsjly;
}
